<?php

require_once 'folder.php';

function getFileInDir($folder, $orderby, $sort){
    $imagePath  = 'd:\\xampp\\htdocs\\cameraquansat.com.vn\\images\\products\\';
    
    $folderPath = $folder .'/';
    $imageFile = array();
    $i = 0;
    foreach ($imgFiles as $file){
        $i_f    = $imagePath .'/'. $file;
        if ( eregi( "bmp|gif|jpg|png|jpeg", $file ) && is_file( $i_f ) ) {
            $imageFile[$i][0] = $file;
            $imageFile[$i][1] = filemtime($i_f) ;
            $i++;
        }
    }
    $images = sortImage($imageFile, $orderby , $sort);
    return $images;
}


$dir = '';
make_thumb();
mark();

